import Mock from 'mockjs'
Mock.mock('http://sunhaojie.com.test/api/v1/post', 'post', {
  'status': 200,
  'errorCode': 'SUCCESS',
  'message': '操作成功',
  'timestamp': '2017-10-17 12:12:12',
  'path': '/api/v1/post',
  'method': null,
  'requestId': null,
  'resultData': null,
  'subErrors': null
})

Mock.mock('http://sunhaojie.com.test/api/v1/table_data', 'get', {
  'status': 200,
  'errorCode': 'SUCCESS',
  'message': '操作成功',
  'timestamp': '2017-10-17 12:12:12',
  'path': '/api/post',
  'method': null,
  'requestId': null,
  'resultData': {
    'pageData': {
      current: 2,
      total: 100,
      pageSize: 10
    },
    'dataList':
    [
      {
        id: 1,
        jobid: 140700,
        jobname: '设计师',
        coname: '前程无忧有限公司',
        jobareaname: '上海',
        providesalaryname: 5000,
        owner: '暑假实习',
        issuedate: '2019-05-05'
      },
      {
        id: 2,
        jobid: 140700,
        jobname: '设计师',
        coname: '前程无忧有限公司',
        jobareaname: '上海',
        providesalaryname: 5000,
        owner: '暑假实习',
        issuedate: '2019-05-05'
      },
      {
        id: 3,
        jobid: 140700,
        jobname: '设计师',
        coname: '前程无忧有限公司',
        jobareaname: '上海',
        providesalaryname: 5000,
        owner: '暑假实习',
        issuedate: '2019-05-05'
      },
      {
        id: 4,
        jobid: 140700,
        jobname: '设计师',
        coname: '前程无忧有限公司',
        jobareaname: '上海',
        providesalaryname: 5000,
        owner: '暑假实习',
        issuedate: '2019-05-05'
      },
      {
        id: 5,
        jobid: 140700,
        jobname: '设计师',
        coname: '前程无忧有限公司',
        jobareaname: '上海',
        providesalaryname: 5000,
        owner: '暑假实习',
        issuedate: '2019-05-05'
      },
      {
        id: 6,
        jobid: 140700,
        jobname: '设计师',
        coname: '前程无忧有限公司',
        jobareaname: '上海',
        providesalaryname: 5000,
        owner: '暑假实习',
        issuedate: '2019-05-05'
      },
      {
        id: 7,
        jobid: 140700,
        jobname: '设计师',
        coname: '前程无忧有限公司',
        jobareaname: '上海',
        providesalaryname: 5000,
        owner: '暑假实习',
        issuedate: '2019-05-05'
      },
      {
        id: 8,
        jobid: 140700,
        jobname: '设计师',
        coname: '前程无忧有限公司',
        jobareaname: '上海',
        providesalaryname: 5000,
        owner: '暑假实习',
        issuedate: '2019-05-05'
      },


    ]
  },
  'subErrors': null
})

Mock.mock('http://sunhaojie.com.test/api/v1/edit', 'post', {
  'status': 200,
  'errorCode': 'SUCCESS',
  'message': '操作成功',
  'timestamp': '2017-10-17 12:12:12',
  'path': '/api/post',
  'method': null,
  'requestId': null,
  'resultData': null,
  'subErrors': null
})

Mock.mock('http://dami.ksyun.com.test/api/v1/delete', 'post', {
  'status': 200,
  'errorCode': 'SUCCESS',
  'message': '操作成功',
  'timestamp': '2017-10-17 12:12:12',
  'path': '/api/post',
  'method': null,
  'requestId': null,
  'resultData': null,
  'subErrors': null
})